<template>
    <div class="footer">
        <div class="item">
            <router-link to="/home" class="nav_item" active-class="nav_color">
                <van-icon name="wap-home-o" size="40" />
                首页
            </router-link>
        </div>
        <div class="item">
            <router-link to="/cart" class="nav_item" active-class="nav_color">
                <van-icon name="shopping-cart-o" size="40" />
                购物车
            </router-link>
        </div>
        <div class="item">
            <router-link to="/order" class="nav_item" active-class="nav_color">
                <van-icon name="notes-o" size="40" />
                订单
            </router-link>
        </div>
        <div class="item">
            <router-link to="/my" class="nav_item" active-class="nav_color">
                <van-icon name="user-circle-o" size="40" />
                我的
            </router-link>
        </div>
    </div>
</template>

<style lang="less">
    .footer{
        display: flex;
        position: fixed;    
        font-size: 6px;
        background-color: antiquewhite;
        border-top: 0.5px solid #eee;
        width: 100%;
        bottom: 0;
        .item{
            display: flex;
            flex: 1;
            justify-content: center;

            .nav_item{
                display: flex;
                flex-flow: column;
                align-items: center;
                color: black;
            }

            .nav_color{
                color: #ffc400;
            }
        }
    }
</style>